<!DOCTYPE html>
<html lang="en">
<head>
    <script>
        if(!localStorage.forgetTel){
            location = "wanghi.html";
        }
    </script>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="shortcut icon"
    href="https://static.app.yinxiang.com/embedded-web/registration/favicon.ico"/>
    <link rel="stylesheet" href="css/wangji.css">
    <link rel="stylesheet" href="css/base.css">  
    <title>重设密码</title>
</head>
<body>
    <div class="wangjidiv">
        <div class="header">
            <a href="login.html" class="wangjilogo"></aa>
            <a href="login.html" class="denglubtn">登录</a>
        </div>
        <div class="wangjiinput">
            <div><h1 style="font-weight: normal;margin-left: 5%; padding: 20px 0;">忘记密码？</h1></div>
            <div class="line"></div>
            <div class="clearfix">
                <div class="shuoming fl">
                    请输入你的手机号或邮箱。<br>
                    你将收到重置密码的信息，可以重新设置新的密码
                </div>
                <div class="right">
                    <div class="shuoming">短信验证码已发送到手机</div>
                    <div><input id="yzm" placeholder="请输入验证码"></div>
                    
                    <div class="getyzm" id="getyzmbtn">获取验证码</div>
                    <div class="error error3" id="error3"></div>
                    <div class="shuomingbtn2 btn" id="shuomingbtn2">重设密码</div>
                </div>
                <div style="text-align: center;font-size:14px" id="tip"></div>
            </div>
        </div>
        <div class="shuoming" style="text-align: center;"><a href="">服务条款</a> | <a href="">隐私政策</a> | 版权所有 2007-2020 大象笔记, 保留所有权利。</div>
    </div>
    
    <script src="https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/js/lib/jquery-1-cc52697ab1.10.2.js"></script>
    <script src="js/base.js"></script>
    <script>
        sendMsg(localStorage.fogetTel,true);

        shuomingbtn2.onclick = function(){
            ajax("/bijiyzm/find2",{tel:localStorage.forgetTel,yzm:yzm.value},function(data){
                if(data){
                    localStorage.yzmRight = true;
                    location = "wangji2.html";
                }else{
                    localStorage.yzmRight = false;
                    tip.innerHTML = "验证码有误！";
                }
            })
        }
    </script>
    
</body>
</html>